//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_fittings_delivery.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {
			Total_price: '',
			Tax_rate: '',
			Fittings_delivery: '',
			Voucher_sub: '',
			Operations_contract_sub: '',
			Client_name: '',
			Site: '',
			Goods_num: '',
			WHSE_no: '',
			Remark: '',
			Attachment: '',
			Image: '',
			Operations_contract: ''
		},
		editFormOptions: [
			{ title: '总价', field: 'Total_price', type: 'text', hidden: true },
			// { key: '税率', data: [], title: '税率', field: 'Tax_rate', type: 'select', hidden: true },
			{ title: '单据编码', field: 'Voucher_sub', disabled: true, type: 'text' },
			{ key: '一级仓库', data: [], title: '发货机构', field: 'WHSE_no', type: 'select' },
			{ title: '运维合同', required: true, field: 'Operations_contract_sub', type: 'text' },
			{ key: '审核通过客户', data: [], title: '客户名称', required: true, field: 'Client_name', type: 'select', disabled: true },
			{ title: '站点名称', required: true, field: 'Site', disabled: true, type: 'text', disabled: true },
			{ title: '数量', field: 'Goods_num', type: 'text', disabled: true },
			{ title: '备注', field: 'Remark', type: 'textarea' },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ title: '图片', field: 'Image', type: 'img' },
			{ title: '运维合同ID', field: 'Operations_contract', disabled: true, hidden: true },
			{ title: 'ID', field: 'Fittings_delivery', disabled: true, hidden: true }
		],
		searchFormFields: { Voucher_sub: '', Operations_contract_sub: '', Client_name: '', Site: '', WHSE_no: '', Remark: '', AuditStatus: '', Creator: '' },
		searchFormOptions: [
			{ title: '备注', field: 'Remark' },
			{ title: '创建人员', field: 'Creator' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ title: '运维合同', field: 'Operations_contract_sub', type: 'like' },
			{ key: '审核通过客户', data: [], title: '客户名称', field: 'Client_name', type: 'select' },
			{ title: '站点名称', field: 'Site', type: 'like' },
			{ type: 'group' },
			{ key: '一级仓库', data: [], title: '发货机构', field: 'WHSE_no', type: 'select' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true, readonly: true },
			{ field: 'Operations_contract_sub', title: '运维合同', type: 'string' },
			{ field: 'Client_name', title: '客户名称', type: 'string', bind: { key: '审核通过客户', data: [] } },
			{ field: 'Site', title: '站点名称', type: 'string', readonly: true },
			{ field: 'Goods_num', title: '数量', type: 'float' },
			{ field: 'WHSE_no', title: '发货机构', type: 'string', bind: { key: '一级仓库', data: [] } },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Creator', title: '创建人员', type: 'string' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' }
		],
		table: {
			key: 'Fittings_delivery',
			footer: 'Foots',
			cnName: '运维发货单',
			name: 'q_fittings_delivery',
			url: '/q_fittings_delivery/',
			sortName: 'Voucher_sub'
		}
	};
}
